#include <stdio.h>
#include "head.h"
void inplace_swap(int *x, int *y);
void reverse_array(int a[], int cnt);

int main(){
	int a[3] = {1, 2, 3};
	int b[4] = {1, 2, 3, 4};
	reverse_array(a, 3);
	reverse_array(b, 4);
	for(int i = 0; i <= 2; i++){
		printf("%d ",a[i]);
	}
	printf("\n");
	for(int j = 0; j <= 3; j++){
		printf("%d ",b[j]);
	}
	printf("\n");
	return 0;
}
